﻿/**
 * ...
 * @author cc
 */
class cn.eminia.A2.cpp.cMath 
{
	
	public function cMath() 
	{
		
	}
	public static function( base:Number, exponent:Number) {
		var result:Number=1;
		if (exponent < 0) {
			throw new Error("指数不能小于0");	
		} 
		if (exponent > 0) {
			for (var i:Number = 0; i < exponent; i++) 
			{
				result *= base;
			}
		}
		return result;
	}
	
}